<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>.:BELLIDO Abogados WebSite:.</title>
        <link rel="shortcut icon" href="../favicon.ico">
        <link href="../css/style.css" rel="stylesheet" type="text/css">
        <link href="../css/960.css" rel="stylesheet" type="text/css">
        <link href="../css/min/reset.css" rel="stylesheet" type="text/css">
        
        <link href='http://fonts.googleapis.com/css?family=Cardo:400,700' rel='stylesheet' type='text/css'>
        
        <script type="text/javascript" src="../js/jquery-1.8.1.min.js"></script> 
		<script type="text/javascript" src="../js/main.js"></script>
         <script src="../js/valid.js" type="text/javascript"></script>
          
        <script type="text/javascript">			
				$(document).ready(function() {
				$("#menu").load("adds/cabecera.html");
                $("#slider").load("adds/slider.html");
             <!--   $("#noticias").load("adds/noticias.html");-->
                $("#footer").load("adds/footer.html");
            });
        </script>
    </head>
    
    <body>
    	       
<div class="container_16">
        
            <div id="menu">
            	&#32;
            </div>            
            
                     
            <img src="../img/bg-top.png" border="0">
            <div id="cuerpo2">
            
        <h4 style="margin-left:40px;"><strong>Contact us</strong></h4>                
               <div id="banner"><img src="../photo/foto_contacto.jpg" width="930" height="280"></div> 
                <div id="contenido"> 
                
                 


<div class="columna5">

  <?  
	$grabarF=$_POST['grabar'];
	if(empty($grabarF)){ ?>

<form id="formulario" action="contact-us.php" method="post" onSubmit="return enviar_formulario();" name="form1" >
      
        <p>
          <label for="nom">Name*</label></p>

           <input name="txtnom" type="text"  id="nom"  value="" size="55">
    
<br>
              <br>
 <p><label for="email">E-mail*</label></p>

             <input name="txtemail" type="text"  id="email"  value="" size="55" onBlur="IsMail(this);">
    
        <br>
        <br>
 <p><label for="telefono">Telephone</label></p>
            
               <input name="txttel" type="text"  id="telefono" value="" size="55">
   
        <br>
        <br>
 <p><label for="compania">Company</label></p>
          
            <input name="txtcomp" type="text"  id="compania" value="" size="55">
    
         <p><label for="descripcion"></label>
          <br>
        Description*</label>
              <br />
          
         <textarea name="txtdes" id="descripcion" cols="42" rows="5"></textarea>

  <br>
              <br>
<input name="grabar" type="submit" class="button" id="sendButton"  value="Send"/>
          </p>
         
<p>* Mandatory fields</p>
    <br>
    <br />
</form>


      <?php 
}


			else
{
	$nom = $_POST['txtnom'];

$email = $_POST['txtemail'];


$tel = $_POST['txttel'];

$comp = $_POST['txtcomp'];
$des = $_POST['txtdes'];


$from = "Formulario  contacto";

//$envio = setcookie("nombre", $from);
$nombre="Bellido Abogados";

$asunto="Usuario - Formulario  contacto";






$mensaje = "<html><head><meta http-equiv=Content-Language content=es><meta http-equiv=Content-Type content=text/html; charset=utf-8><title></title></head><body  topmargin=0 leftmargin=0><table border=0 width=65% >
  <tr>
    <td colspan=2>Datos ingresados desde el formulario web contáctenos</td>
  </tr><tr><td width=111 height=10></td>
  <td width=428></td>  </tr><tr>  <td>Nombres  :</td>  
    <td>$nom</td>
  </tr>
  <tr>  <td>Email  :</td>  
    <td>$email</td>
  </tr><tr>
      <td>Tel&eacute;fono :</td>
      <td>$tel</td>
  </tr><tr>
        <td>Compa&#241;ia :</td>
        <td>$comp</td>  
  </tr>   <tr>    <td>Descripci&#243;n:</td>
      <td>$des</td>  
  </tr>  <tr><td height=15></td><td ></td></tr>  </table></body></html>
</body>
</html>";
	
$cabeceras = "MIME-Version: 1.0\r\n";

$cabeceras .= "Content-type: text/html; charset=utf-8\r\n";


$cabeceras .= "From:".$asunto." <".$email.">\r\n";

$cabeceras .= "Reply-To:".$email."\r\n";

$emailAdm="estudio@bellidolegal.com";

	
	mail($emailAdm,"Formulario contacto ",$mensaje,$cabeceras);

echo "<div style='height:300px' ><br><br><p>Your message was sent successfully .</p></div>";




	}


?>

<p><strong>Address:</strong> Los Ángeles 325. Miraflores - Lima 18, Perú 
 
<br />
<strong>Telephone:</strong> (511) 421-3551<br />
<strong>Email:</strong> estudio@bellidolegal.com<br /></p>

</div>


<div class="columna6"><iframe width="440" height="380" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps?f=d&amp;source=s_d&amp;saddr=Los+%C3%81ngeles+325+-+Lima+18,+Per%C3%BA&amp;daddr=&amp;geocode=&amp;aq=&amp;sll=-12.106938,-77.032549&amp;sspn=0.009273,0.016512&amp;hl=es&amp;mra=ls&amp;ie=UTF8&amp;t=m&amp;ll=-12.106928,-77.032549&amp;spn=0.007973,0.00942&amp;z=16&amp;output=embed"></iframe></div>
           
                </div>
                              
  </div>
            
   <img src="../img/bg-bottom.png" border="0"> 
      </div>
        
        <div id="footer">
            &#32;
        </div>        
        
    </body>
</html>
